package dp05.leertaak1.command.implementations;

import java.util.LinkedList;

import dp05.leertaak1.command.definitions.Command;
import dp05.leertaak1.dao.definitions.DAO;

public class Get extends Command
{

    public Get(DAO actionReceiver)
    {
        super(actionReceiver);
    }

    public String execute()
    {
        LinkedList<Integer> loadedElements = actionReceiver.get();
        return String.format("%d elements loaded in the datastructure", loadedElements.size());
    }
}